var login = {
	show : function() {
		var width = window.screen.availWidth;
		var height = window.screen.availHeight;
		var loginWidth = $("#divLogin .login_main").width();
		var loginHeight = $("#divLogin .login_main").height();
		var left = ((width - 10 - loginWidth) / 2) + "px";
		var top = ((height - 100 - loginHeight) / 2) + "px";

		$("#divLogin .login_main").css("margin-left", left);
		$("#divLogin .login_main").css("margin-top", top);

		$("#divLogin").css("display", "block");

		$(document).ready(function() {
			$("#divLogin .login_exit").click(function() {
				login.hidden();
			});
		});
	},
	hidden : function() {
		$("#divLogin").css("display", "none");
	}
};

function showLogin() {
	login.show();
}